
package com.xiangwei.service;

import java.util.List;
import java.util.Map;

import com.xiangwei.entity.Admin;

public interface IAdminService {
    public void insertAdmin(Admin Admin);

	public Admin getAdmin(Admin admin);
	
	public Admin selectByPrimaryKey(String id);
	
	public int deleteByPrimaryKey(String id);
	
	public List<Admin> findAdminList(Admin admin);
	/**
	  * 保存密码
	  * @param admin
	  * @return
	  */
	 public int savePwd(Admin admin);
	 /**
	  * 保存用户信息
	  * @param admin
	  * @return
	  */
	 public int saveAdmin(Admin admin);
	 /**
	  * 根据主键更新用户信息
	  * @param record
	  * @return
	  */
	 public int updateByPrimaryKeySelective(Admin record);
	 /**
	  * 查看用户名是否重复
	  * @param map
	  * @return
	  */
	 public int findUserNameCount(String username,String id);
	 /**
	  * 验证原密码是否输入正确
	  * @param admin
	  * @param oldPassword
	  * @return
	  */
	 public int checkPwd(Admin admin,String oldPassword);
}
